﻿<form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
  {{~ for property in exclude_propertys(self_value_propertys, "TenantId", "Level", "ParentId") ~}}
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzRequired>
      {%{{{}%} '{{project_group_name}}::ModelTitle:{{namespace}}.{{class_name}}.{{property.name}}' | abpLocalization {%{}}}%}
    </nz-form-label>
    <nz-form-control [nzSpan]="16" nzHasFeedback>
      <input 
        nz-input 
        formControlName="{{to_camel_case(property.name)}}" 
        [placeholder]="'{{project_group_name}}::ModelPlaceHolder:{{namespace}}.{{class_name}}.{{property.name}}' | abpLocalization" 
      />
    </nz-form-control>
  </nz-form-item>
  {{~ end ~}}
</form>

<div *nzModalFooter>
  <button nz-button nzType="default" (click)="cancelForm()">
    {%{{{}%} 'BasicArchives::UI:SimplyTreeUI.RefEntity.Cancel' | abpLocalization {%{}}}%}
  </button>
  <button nz-button nzType="primary" (click)="submitForm()" [disabled]="!validateForm.valid">
    {%{{{}%} 'BasicArchives::UI:SimplyTreeUI.RefEntity.Submit' | abpLocalization {%{}}}%}
  </button>
</div>
